package br.ufrj.dcc.smarthotel.controls;

import br.ufrj.dcc.smarthotel.activities.RequestServiceActivity;
import br.ufrj.dcc.smarthotel.entities.Service;

public class RequestServiceControl extends Control {
	private RequestServiceActivity activity;
	
	public RequestServiceControl(RequestServiceActivity activity) {
		this.activity = activity;
	}

	public void loadService(int clickedServiceId) {
		Service clickedServide = (Service)this.retrieve(this.baseURI + "service/" + clickedServiceId, Service.class);
		
		this.activity.setClickedService(clickedServide);
	}
}
